extends Control

func _ready():
	pass # Replace with function body.

func _on_About_pressed():
	$PopupPanel.popup()
	pass # Replace with function body.

func _on_NewGame_pressed():
	Global.clear_data()
	get_tree().change_scene("res://scene/Game.tscn")
	pass # Replace with function body.


func _on_LoadGame_pressed():
	var file = File.new()
	if file.file_exists("user://data.json"):
		file.open("user://data.json",File.READ)
		Global.data = parse_json(file.get_as_text())
		file.close()
		get_tree().change_scene("res://scene/Game.tscn")
	pass # Replace with function body.


func _on_Gonglue_pressed():
	$GongluePanel.popup()
	pass # Replace with function body.


func _on_Gonglue2_pressed():
	get_tree().change_scene("res://scene/EndCG.tscn")
	pass # Replace with function body.
